using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevExpress.ExpressApp.DC;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Xpo;
namespace Ascent.Module.BusinessObjects.Base
{
  [DefaultClassOptions]
  [DevExpress.Persistent.Base.NavigationItemAttribute("基础数据")]
  [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("联系人")]
  [DevExpress.Persistent.Base.ImageNameAttribute("BO_Person")]
  public partial class Contact : DevExpress.Persistent.BaseImpl.BaseObject
  {
    private Ascent.Module.BusinessObjects.Purchase.Supplier _supplier;
    private Ascent.Module.BusinessObjects.Enums.SexType _sex;
    private System.Boolean _isActive;
    private System.String _remarks;
    private System.String _eMail;
    private System.String _fax;
    private System.String _telphone;
    private System.String _mobile;
    private System.String _name;
    public Contact(DevExpress.Xpo.Session session)
      : base(session)
    {
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("姓名")]
    public System.String Name
    {
      get
      {
        return _name;
      }
      set
      {
        SetPropertyValue("Name", ref _name, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("性别")]
    public Ascent.Module.BusinessObjects.Enums.SexType Sex
    {
      get
      {
        return _sex;
      }
      set
      {
        SetPropertyValue("Sex", ref _sex, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("手机")]
    public System.String Mobile
    {
      get
      {
        return _mobile;
      }
      set
      {
        SetPropertyValue("Mobile", ref _mobile, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("电话")]
    public System.String Telphone
    {
      get
      {
        return _telphone;
      }
      set
      {
        SetPropertyValue("Telphone", ref _telphone, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("传真")]
    public System.String Fax
    {
      get
      {
        return _fax;
      }
      set
      {
        SetPropertyValue("Fax", ref _fax, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("邮箱")]
    public System.String EMail
    {
      get
      {
        return _eMail;
      }
      set
      {
        SetPropertyValue("EMail", ref _eMail, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("备注")]
    public System.String Remarks
    {
      get
      {
        return _remarks;
      }
      set
      {
        SetPropertyValue("Remarks", ref _remarks, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("是否可用")]
    public System.Boolean IsActive
    {
      get
      {
        return _isActive;
      }
      set
      {
        SetPropertyValue("IsActive", ref _isActive, value);
      }
    }
    [DevExpress.Xpo.AssociationAttribute("Contacts-Supplier")]
    [System.ComponentModel.BrowsableAttribute(false)]
    public Ascent.Module.BusinessObjects.Purchase.Supplier Supplier
    {
      get
      {
        return _supplier;
      }
      set
      {
        SetPropertyValue("Supplier", ref _supplier, value);
      }
    }
  }
}
